package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/***
 * 告警级别定义表
 * @author sc
 *
 */
@Entity
@Table(name = "m_warn_level")
public class MWarnLevel implements java.io.Serializable {

	// Fields

	private Long  id;
	private Integer warnlevel;  //告警级别
	private String warndetail;  //级别描述
	private Integer updatetype;//更新标示 1新增  2修改  3删除
	private Date updateTime; //更新时间

	// Constructors

	/** default constructor */
	public MWarnLevel() {
	}

	
	@GeneratedValue(generator="generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity") 
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	
	@Column(name = "warnlevel", unique = true, nullable = false, insertable = true, updatable = true)
	public Integer getWarnlevel() {
		return this.warnlevel;
	}

	public void setWarnlevel(Integer warnlevel) {
		this.warnlevel = warnlevel;
	}

	@Column(name = "warndetail", unique = false, nullable = false, insertable = true, updatable = true, length = 60)
	public String getWarndetail() {
		return this.warndetail;
	}

	public void setWarndetail(String warndetail) {
		this.warndetail = warndetail;
	}

	@Column(name = "updatetype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}


	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updatetime")

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}



}